<template>
	<div>
		<MemberLogin v-if="!member"></MemberLogin>
		<MenberMan  v-if="member"></MenberMan>
	</div>
</template>

<script>
	import MemberLogin from '../submember/MemberLogin.vue'
	import MenberMan from '../submember/MemberMan.vue'
	export default{
		components:{
			MemberLogin,
			MenberMan
		},
		data(){
			return{
				// member: JSON.parse(sessionStorage.getItem('member')).nickname || []
				member: null
			}
		},
		created() {
			if(!sessionStorage.getItem('member')){
				return
			}else{
				this.member = JSON.parse(sessionStorage.getItem('member')).nickname 
			}
		}
	}
</script>

<style>
</style>
